from django.db import models
from utils.models import CoreModel   


class Shipto(CoreModel):
    id = models.IntegerField(primary_key=True, help_text="快递簿主键", verbose_name="快递簿主键")
    contact_number = models.CharField(null=True, blank=True, max_length=11, verbose_name='联系电话', help_text='联系电话')
    contact_person = models.CharField(null=True, blank=True, max_length=16, verbose_name='联系人', help_text='联系人')    
    ship_to_address = models.CharField(null=True, blank=True, max_length=100, verbose_name='发货地址', help_text='发货地址')
    ship_id = models.CharField(null=True, blank=True, max_length=16, verbose_name='地址ID', help_text='地址ID')    
    partner_id = models.IntegerField(null=True, blank=True,verbose_name='客户号', help_text='客户号')

    class Meta:
        db_table = 'shipto'
        verbose_name = '通讯簿'
        verbose_name_plural = verbose_name
        ordering = ('-creation_on',)
    